package cn.tedu.note.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class PointCutDemo {
	
	//在一个具体方法之前执行
	//@Before("execution(* cn.tedu.note.service.UserService.login(..))")
	//@Before("execution(* cn.tedu.note.*.*Service.*(..))")
	//@Before("bean(*Service)")
	@Before("within(cn.tedu.note.service.UserServiceImpl)" )
	public void test(){
		System.out.println("PointCut");
	}
}




